Skip to content

[BugFix] Update pillow usage#16269

Merged
quic-sanirudh merged 1 commit intoapache:mainfrom
y-fjmt:main
Jan 2, 2024
Merged

[BugFix] Update pillow usage#16269
quic-sanirudh merged 1 commit intoapache:mainfrom
y-fjmt:main

Conversation

@y-fjmt
Copy link
Copy Markdown
Contributor

@y-fjmt y-fjmt commented Dec 21, 2023

This is a pull request for Yolo detection boxes helper functions.
Tracking issue: #16268

Update to use a replacement function for the removed function so that it can be executed in Pillow version 10 or later.

Copy link
Copy Markdown
Contributor

@quic-sanirudh quic-sanirudh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but could this affect backward compatibility for folks who don't use the latest Pillow version?

Should we perhaps add a version specific check to verify whether the textlength function exists before using it?

@mshr-h
Copy link
Copy Markdown
Contributor

mshr-h commented Dec 25, 2023

The textlength function was added in version 8.0.0, released on Oct 15, 2020. It's been 3yrs since its release, so I believe we no longer need to prioritize it.

Copy link
Copy Markdown
Contributor

@quic-sanirudh quic-sanirudh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks. As discussed in the comments, since the textlength function was added in 8.0 version almost 3 years ago and since this is just a testing function, I'm fine with not adding any version specific checks for this change.

@quic-sanirudh quic-sanirudh merged commit c157ca1 into apache:main Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants